<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>银行业务系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">

    <!-- Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#1a56db',
                        secondary: '#3b82f6',
                        accent: '#60a5fa',
                        light: '#f3f4f6',
                        dark: '#1f2937',
                        success: '#10b981',
                        warning: '#f59e0b',
                        danger: '#ef4444'
                    },
                    fontFamily: {
                        sans: ['Noto Sans SC', 'sans-serif'],
                    },
                }
            }
        }
    </script>

    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .bg-bank-gradient {
                background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
            }
            .card-shadow {
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            }
            .nav-link {
                @apply flex items-center px-4 py-3 text-gray-600 hover:bg-blue-50 hover:text-primary transition-all duration-200;
            }
            .nav-link.active {
                @apply bg-blue-50 text-primary border-l-4 border-primary;
            }
            .btn-primary {
                @apply bg-primary hover:bg-primary/90 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg;
            }
            .btn-secondary {
                @apply bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 font-medium py-2 px-4 rounded-lg transition-all duration-200;
            }
            .input-field {
                @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all duration-200;
            }
        }
    </style>
</head>

<body class="font-sans bg-gray-50 text-dark min-h-screen flex flex-col">
    <!-- 登录页面 -->
    <div id="login-page" class="flex flex-col items-center justify-center min-h-screen bg-gradient-to-br from-blue-50 to-indigo-50 p-4">
        <div class="w-full max-w-md">
            <div class="bg-white rounded-2xl shadow-xl overflow-hidden card-shadow">
                <div class="bg-bank-gradient text-white p-6">
                    <h1 class="text-2xl font-bold text-center">银行业务系统</h1>
                    <p class="text-center mt-2 opacity-90">安全、便捷的金融服务平台</p>
                </div>
                <div class="p-6">
                    <form id="login-form" class="space-y-4">
                        <div>
                            <label for="account" class="block text-sm font-medium text-gray-700 mb-1">账号</label>
                            <div class="relative">
                                <span class="absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400">
                                    <i class="fa fa-user"></i>
                                </span>
                                <input type="text" id="account" name="account" class="input-field pl-10" placeholder="管理员账号：123456 或 客户卡号" required>
                            </div>
                        </div>
                        <div>
                            <label for="password" class="block text-sm font-medium text-gray-700 mb-1">密码</label>
                            <div class="relative">
                                <span class="absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400">
                                    <i class="fa fa-lock"></i>
                                </span>
                                <input type="password" id="password" name="password" class="input-field pl-10" placeholder="管理员密码：888888 或 卡密码" required>
                            </div>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <input id="remember" name="remember" type="checkbox" class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded">
                                <label for="remember" class="ml-2 block text-sm text-gray-900">记住我</label>
                            </div>
                            <a href="#" class="text-sm text-primary hover:underline">忘记密码?</a>
                        </div>
                        <div>
                            <button type="submit" class="w-full btn-primary flex items-center justify-center">
                                <i class="fa fa-sign-in mr-2"></i> 登录
                            </button>
                        </div>
                        <div class="text-center text-sm text-gray-500">
                            还没有账号? <a href="#" class="text-primary hover:underline">立即注册</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <!-- 管理员首页 -->
    <div id="admin-dashboard" class="hidden flex-1 flex flex-col lg:flex-row">
        <!-- 侧边栏 -->
        <aside class="w-full lg:w-64 bg-white shadow-md lg:h-screen lg:fixed lg:inset-y-0 lg:z-10 transition-all duration-300">
            <div class="p-4 border-b">
                <div class="flex items-center space-x-3">
                    <div class="w-10 h-10 rounded-full bg-bank-gradient flex items-center justify-center text-white">
                        <i class="fa fa-bank text-xl"></i>
                    </div>
                    <h2 class="text-xl font-bold text-gray-900">银行管理系统</h2>
                </div>
            </div>

            <nav class="py-4">
                <div class="px-4 mb-6">
                    <p class="text-xs font-semibold text-gray-400 uppercase tracking-wider">管理员功能</p>
                </div>

                <a href="#admin-dashboard" class="nav-link active">
                    <i class="fa fa-tachometer mr-3 w-5 text-center"></i>
                    <span>首页</span>
                </a>

                <a href="#customer-management" class="nav-link">
                    <i class="fa fa-users mr-3 w-5 text-center"></i>
                    <span>客户管理</span>
                </a>

                <a href="#card-management" class="nav-link">
                    <i class="fa fa-credit-card mr-3 w-5 text-center"></i>
                    <span>银行卡管理</span>
                </a>

                <a href="#transaction-management" class="nav-link">
                    <i class="fa fa-exchange mr-3 w-5 text-center"></i>
                    <span>交易管理</span>
                </a>

                <a href="#deposit-management" class="nav-link">
                    <i class="fa fa-money mr-3 w-5 text-center"></i>
                    <span>存款业务管理</span>
                </a>

                <div class="px-4 mt-8 mb-6">
                    <p class="text-xs font-semibold text-gray-400 uppercase tracking-wider">系统</p>
                </div>

                <a href="#settings" class="nav-link">
                    <i class="fa fa-cog mr-3 w-5 text-center"></i>
                    <span>系统设置</span>
                </a>

                <a href="#login-page" id="admin-logout" class="nav-link">
                    <i class="fa fa-sign-out mr-3 w-5 text-center"></i>
                    <span>退出登录</span>
                </a>
            </nav>
        </aside>

        <!-- 主内容区 -->
        <main class="flex-1 lg:ml-64 p-6">
            <!-- 顶部导航 -->
            <header class="mb-6">
                <div class="flex flex-col md:flex-row md:items-center md:justify-between">
                    <div>
                        <h1 class="text-2xl font-bold text-gray-900">管理员控制台</h1>
                        <p class="text-gray-500 mt-1">欢迎回来，管理员</p>
                    </div>
                    <div class="mt-4 md:mt-0 flex items-center space-x-4">
                        <div class="relative">
                            <button class="flex items-center space-x-2 bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 font-medium py-2 px-4 rounded-lg transition-all duration-200">
                                <i class="fa fa-search"></i>
                                <span class="hidden md:inline">搜索</span>
                            </button>
                        </div>
                        <div class="relative">
                            <button class="flex items-center space-x-2 bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 font-medium py-2 px-4 rounded-lg transition-all duration-200">
                                <i class="fa fa-bell"></i>
                                <span class="hidden md:inline">通知</span>
                                <span class="absolute -top-1 -right-1 bg-danger text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
                            </button>
                        </div>
                        <div class="flex items-center space-x-2">
                            <img src="https://picsum.photos/id/1005/40/40" alt="管理员头像" class="w-10 h-10 rounded-full object-cover border-2 border-white shadow">
                            <div class="hidden md:block">
                                <p class="text-sm font-medium text-gray-900">管理员</p>
                                <p class="text-xs text-gray-500">admin</p>
                            </div>
                        </div>
                    </div>
                </div>
            </header>

            <!-- 数据概览卡片 -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-white rounded-xl shadow-md p-6 card-shadow border-l-4 border-primary">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">客户总数</p>
                            <h3 class="text-3xl font-bold text-gray-900 mt-1">10</h3>
                            <p class="text-xs text-success mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 5.2% <span class="text-gray-500 ml-1">较上月</span>
                            </p>
                        </div>
                        <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center text-primary">
                            <i class="fa fa-users text-xl"></i>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-md p-6 card-shadow border-l-4 border-secondary">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">银行卡总数</p>
                            <h3 class="text-3xl font-bold text-gray-900 mt-1">10</h3>
                            <p class="text-xs text-success mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 3.8% <span class="text-gray-500 ml-1">较上月</span>
                            </p>
                        </div>
                        <div class="w-12 h-12 rounded-lg bg-secondary/10 flex items-center justify-center text-secondary">
                            <i class="fa fa-credit-card text-xl"></i>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-md p-6 card-shadow border-l-4 border-accent">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">今日交易</p>
                            <h3 class="text-3xl font-bold text-gray-900 mt-1">24</h3>
                            <p class="text-xs text-danger mt-2 flex items-center">
                                <i class="fa fa-arrow-down mr-1"></i> 1.2% <span class="text-gray-500 ml-1">较昨日</span>
                            </p>
                        </div>
                        <div class="w-12 h-12 rounded-lg bg-accent/10 flex items-center justify-center text-accent">
                            <i class="fa fa-exchange text-xl"></i>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-md p-6 card-shadow border-l-4 border-success">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">存款总额(万元)</p>
                            <h3 class="text-3xl font-bold text-gray-900 mt-1">2.5</h3>
                            <p class="text-xs text-success mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 8.5% <span class="text-gray-500 ml-1">较上月</span>
                            </p>
                        </div>
                        <div class="w-12 h-12 rounded-lg bg-success/10 flex items-center justify-center text-success">
                            <i class="fa fa-money text-xl"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 图表和数据表格 -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                <!-- 左侧图表 -->
                <div class="lg:col-span-2 bg-white rounded-xl shadow-md p-6 card-shadow">
                    <div class="flex items-center justify-between mb-6">
                        <h3 class="text-lg font-semibold text-gray-900">存款类型分布</h3>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-xs font-medium rounded-full bg-primary text-white">本月</button>
                            <button class="px-3 py-1 text-xs font-medium rounded-full bg-gray-100 text-gray-700 hover:bg-gray-200">本季</button>
                            <button class="px-3 py-1 text-xs font-medium rounded-full bg-gray-100 text-gray-700 hover:bg-gray-200">本年</button>
                        </div>
                    </div>
                    <div class="h-80">
                        <canvas id="depositChart"></canvas>
                    </div>
                </div>

                <!-- 右侧客户列表 -->
                <div class="bg-white rounded-xl shadow-md p-6 card-shadow">
                    <div class="flex items-center justify-between mb-6">
                        <h3 class="text-lg font-semibold text-gray-900">最近客户</h3>
                        <a href="#customer-management" class="text-primary text-sm font-medium hover:underline">查看全部</a>
                    </div>
                    <div class="space-y-4 max-h-80 overflow-y-auto pr-2">
                                                <div class="flex items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                            <img src="https://picsum.photos/id/1001/40/40" alt="客户头像" class="w-10 h-10 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="text-sm font-medium text-gray-900">John</h4>
                                    <span class="text-xs font-medium bg-blue-100 text-blue-800 px-2 py-0.5 rounded">客户</span>
                                </div>
                                <p class="text-xs text-gray-500">客户编号: 1</p>
                                <p class="text-xs text-gray-500">银行卡: 1010357600000001</p>
                            </div>
                            <div class="flex space-x-2">
                                <button class="text-sm text-primary hover:text-primary/80">
                                    <i class="fa fa-edit"></i>
                                </button>
                                <button class="text-sm text-danger hover:text-danger/80">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="flex items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                            <img src="https://picsum.photos/id/1002/40/40" alt="客户头像" class="w-10 h-10 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="text-sm font-medium text-gray-900">Jane</h4>
                                    <span class="text-xs font-medium bg-blue-100 text-blue-800 px-2 py-0.5 rounded">客户</span>
                                </div>
                                <p class="text-xs text-gray-500">客户编号: 2</p>
                                <p class="text-xs text-gray-500">银行卡: 1010357600000002</p>
                            </div>
                            <div class="flex space-x-2">
                                <button class="text-sm text-primary hover:text-primary/80">
                                    <i class="fa fa-edit"></i>
                                </button>
                                <button class="text-sm text-danger hover:text-danger/80">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="flex items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                            <img src="https://picsum.photos/id/1003/40/40" alt="客户头像" class="w-10 h-10 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="text-sm font-medium text-gray-900">Michael</h4>
                                    <span class="text-xs font-medium bg-blue-100 text-blue-800 px-2 py-0.5 rounded">客户</span>
                                </div>
                                <p class="text-xs text-gray-500">客户编号: 3</p>
                                <p class="text-xs text-gray-500">银行卡: 1010357600000003</p>
                            </div>
                            <div class="flex space-x-2">
                                <button class="text-sm text-primary hover:text-primary/80">
                                    <i class="fa fa-edit"></i>
                                </button>
                                <button class="text-sm text-danger hover:text-danger/80">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="flex items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                            <img src="https://picsum.photos/id/1004/40/40" alt="客户头像" class="w-10 h-10 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="text-sm font-medium text-gray-900">Emily</h4>
                                    <span class="text-xs font-medium bg-blue-100 text-blue-800 px-2 py-0.5 rounded">客户</span>
                                </div>
                                <p class="text-xs text-gray-500">客户编号: 4</p>
                                <p class="text-xs text-gray-500">银行卡: 1010357600000004</p>
                            </div>
                            <div class="flex space-x-2">
                                <button class="text-sm text-primary hover:text-primary/80">
                                    <i class="fa fa-edit"></i>
                                </button>
                                <button class="text-sm text-danger hover:text-danger/80">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="flex items-center p-3 hover:bg-gray-50 rounded-lg transition-colors">
                            <img src="https://picsum.photos/id/1005/40/40" alt="客户头像" class="w-10 h-10 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="text-sm font-medium text-gray-900">David</h4>
                                    <span class="text-xs font-medium bg-blue-100 text-blue-800 px-2 py-0.5 rounded">客户</span>
                                </div>
                                <p class="text-xs text-gray-500">客户编号: 5</p>
                                <p class="text-xs text-gray-500">银行卡: 1010357600000005</p>
                            </div>
                            <div class="flex space-x-2">
                                <button class="text-sm text-primary hover:text-primary/80">
                                    <i class="fa fa-edit"></i>
                                </button>
                                <button class="text-sm text-danger hover:text-danger/80">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 客户管理表格 -->
            <div id="customer-management" class="mt-8 bg-white rounded-xl shadow-md p-6 card-shadow hidden">
                <div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6">
                    <h3 class="text-lg font-semibold text-gray-900">客户管理</h3>
                    <div class="flex space-x-3 mt-4 md:mt-0">
                        <div class="relative flex-1 max-w-md">
                            <input type="text" id="customer-search" class="input-field pl-10" placeholder="搜索客户编号或身份证号">
                            <span class="absolute inset-y-0 left-0 flex items-center pl-3 text-gray-400">
                                <i class="fa fa-search"></i>
                            </span>
                        </div>
                        <button class="btn-primary flex items-center">
                            <i class="fa fa-plus mr-2"></i> 添加客户
                        </button>
                        <button class="btn-secondary flex items-center">
                            <i class="fa fa-file-text-o mr-2"></i> 导出CSV
                        </button>
                    </div>
                </div>

                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">客户编号</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">客户姓名</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">身份证号</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">联系电话</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">联系地址</th>
                                <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">1</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000001</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000001</td>
                                <td class="px-6 py-4 text-sm text-gray-500">江苏省南京市</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">2</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jane</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000002</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000002</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">3</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Michael</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000003</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000003</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">4</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Emily</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000004</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000004</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">5</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">David</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000005</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000005</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">6</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000006</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000006</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">7</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Robert</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000007</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000007</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                                                        <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">8</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jessica</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000008</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000008</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">9</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">William</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000009</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000009</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">10</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Olivia</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">110000000000000010</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13900000010</td>
                                <td class="px-6 py-4 text-sm text-gray-500">-</td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i> 修改
                                    </button>
                                    <button class="text-danger hover:text-danger/80">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div class="mt-6 flex items-center justify-between">
                    <div class="text-sm text-gray-500">
                        显示 <span class="font-medium">1</span> 到 <span class="font-medium">10</span> 条，共 <span class="font-medium">10</span> 条记录
                    </div>
                    <div class="flex space-x-2">
                        <button class="px-3 py-1 rounded border border-gray-300 text-gray-500 hover:bg-gray-50 disabled:opacity-50" disabled>
                            <i class="fa fa-chevron-left"></i>
                        </button>
                        <button class="px-3 py-1 rounded border border-primary bg-primary text-white">1</button>
                        <button class="px-3 py-1 rounded border border-gray-300 text-gray-700 hover:bg-gray-50">2</button>
                        <button class="px-3 py-1 rounded border border-gray-300 text-gray-700 hover:bg-gray-50">3</button>
                        <button class="px-3 py-1 rounded border border-gray-300 text-gray-700 hover:bg-gray-50">
                            <i class="fa fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 客户首页 -->
    <div id="client-dashboard" class="hidden flex-1 flex flex-col lg:flex-row">
        <!-- 侧边栏 -->
        <aside class="w-full lg:w-64 bg-white shadow-md lg:h-screen lg:fixed lg:inset-y-0 lg:z-10 transition-all duration-300">
            <div class="p-4 border-b">
                <div class="flex items-center space-x-3">
                    <div class="w-10 h-10 rounded-full bg-bank-gradient flex items-center justify-center text-white">
                        <i class="fa fa-user-circle text-xl"></i>
                    </div>
                    <h2 class="text-xl font-bold text-gray-900">个人银行</h2>
                </div>
            </div>

            <nav class="py-4">
                <div class="px-4 mb-6">
                    <p class="text-xs font-semibold text-gray-400 uppercase tracking-wider">我的账户</p>
                </div>

                <a href="#client-dashboard" class="nav-link active">
                    <i class="fa fa-dashboard mr-3 w-5 text-center"></i>
                    <span>账户首页</span>
                </a>

                <a href="#account-info" class="nav-link">
                    <i class="fa fa-id-card mr-3 w-5 text-center"></i>
                    <span>个人信息</span>
                </a>

                <a href="#account-balance" class="nav-link">
                    <i class="fa fa-money mr-3 w-5 text-center"></i>
                    <span>账户余额</span>
                </a>

                <div class="px-4 mt-8 mb-6">
                    <p class="text-xs font-semibold text-gray-400 uppercase tracking-wider">账户操作</p>
                </div>

                <a href="#deposit" class="nav-link">
                    <i class="fa fa-plus-circle mr-3 w-5 text-center"></i>
                    <span>存款</span>
                </a>

                <a href="#withdraw" class="nav-link">
                    <i class="fa fa-minus-circle mr-3 w-5 text-center"></i>
                    <span>取款</span>
                </a>

                <a href="#transfer" class="nav-link">
                    <i class="fa fa-exchange mr-3 w-5 text-center"></i>
                    <span>转账</span>
                </a>

                <a href="#transaction-history" class="nav-link">
                    <i class="fa fa-history mr-3 w-5 text-center"></i>
                    <span>交易记录</span>
                </a>

                <a href="#card-loss" class="nav-link">
                    <i class="fa fa-lock mr-3 w-5 text-center"></i>
                    <span>挂失</span>
                </a>

                <a href="#change-password" class="nav-link">
                    <i class="fa fa-key mr-3 w-5 text-center"></i>
                    <span>修改密码</span>
                </a>

                <div class="px-4 mt-8 mb-6">
                    <p class="text-xs font-semibold text-gray-400 uppercase tracking-wider">系统</p>
                </div>

                <a href="#login-page" id="client-logout" class="nav-link">
                    <i class="fa fa-sign-out mr-3 w-5 text-center"></i>
                    <span>退出登录</span>
                </a>
            </nav>
        </aside>

        <!-- 主内容区 -->
        <main class="flex-1 lg:ml-64 p-6">
            <!-- 顶部导航 -->
            <header class="mb-6">
                <div class="flex flex-col md:flex-row md:items-center md:justify-between">
                    <div>
                        <h1 class="text-2xl font-bold text-gray-900">个人银行首页</h1>
                        <p class="text-gray-500 mt-1" id="client-welcome">欢迎回来，John</p>
                    </div>
                    <div class="mt-4 md:mt-0 flex items-center space-x-4">
                        <div class="relative">
                            <button class="flex items-center space-x-2 bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 font-medium py-2 px-4 rounded-lg transition-all duration-200">
                                <i class="fa fa-bell"></i>
                                <span class="hidden md:inline">通知</span>
                                <span class="absolute -top-1 -right-1 bg-danger text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">1</span>
                            </button>
                        </div>
                        <div class="flex items-center space-x-2">
                            <img src="https://picsum.photos/id/1005/40/40" alt="客户头像" class="w-10 h-10 rounded-full object-cover border-2 border-white shadow">
                            <div class="hidden md:block">
                                <p class="text-sm font-medium text-gray-900" id="client-name">John</p>
                                <p class="text-xs text-gray-500" id="client-card">银行卡: 1010357600000001</p>
                            </div>
                        </div>
                    </div>
                </div>
            </header>

            <!-- 账户信息卡片 -->
            <div class="bg-white rounded-xl shadow-md p-6 card-shadow mb-8">
                <div class="flex flex-col md:flex-row md:items-center">
                    <div class="mb-6 md:mb-0 md:mr-8">
                        <img src="https://picsum.photos/id/1005/120/120" alt="客户头像" class="w-24 h-24 rounded-full object-cover border-4 border-white shadow-lg">
                    </div>
                    <div class="flex-1">
                        <div class="flex flex-col md:flex-row md:items-center justify-between mb-4">
                            <div>
                                <h2 class="text-2xl font-bold text-gray-900" id="client-fullname">John</h2>
                                <p class="text-gray-500">个人客户</p>
                            </div>
                            <a href="#account-info" class="btn-secondary text-sm">
                                <i class="fa fa-edit mr-1"></i> 修改信息
                            </a>
                        </div>
                        <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
                            <div class="bg-gray-50 p-3 rounded-lg">
                                <p class="text-xs text-gray-500">客户编号</p>
                                <p class="text-sm font-medium text-gray-900" id="client-id">1</p>
                            </div>
                            <div class="bg-gray-50 p-3 rounded-lg">
                                <p class="text-xs text-gray-500">身份证号</p>
                                <p class="text-sm font-medium text-gray-900" id="client-pid">110000000000000001</p>
                            </div>
                            <div class="bg-gray-50 p-3 rounded-lg">
                                <p class="text-xs text-gray-500">联系电话</p>
                                <p class="text-sm font-medium text-gray-900" id="client-phone">13900000001</p>
                            </div>
                            <div class="bg-gray-50 p-3 rounded-lg">
                                <p class="text-xs text-gray-500">联系地址</p>
                                <p class="text-sm font-medium text-gray-900" id="client-address">江苏省南京市</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 账户余额卡片 -->
            <div class="bg-white rounded-xl shadow-md p-6 card-shadow mb-8">
                <div class="flex items-center justify-between mb-6">
                    <h3 class="text-lg font-semibold text-gray-900">账户余额</h3>
                    <a href="#account-balance" class="text-primary text-sm font-medium hover:underline">查看详情</a>
                </div>
                <div class="flex flex-col md:flex-row md:items-center">
                    <div class="mb-6 md:mb-0 md:mr-8">
                        <div class="w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                            <i class="fa fa-money text-2xl"></i>
                        </div>
                    </div>
                    <div class="flex-1">
                        <p class="text-sm text-gray-500 mb-2">当前账户余额</p>
                        <p class="text-4xl font-bold text-gray-900" id="balance-amount">¥1,000.00</p>
                        <p class="text-xs text-success mt-2 flex items-center">
                            <i class="fa fa-arrow-up mr-1"></i> 5.2% <span class="text-gray-500 ml-1">较上月</span>
                        </p>
                    </div>
                    <div class="mt-4 md:mt-0">
                        <button class="btn-primary w-full md:w-auto">
                            <i class="fa fa-plus mr-2"></i> 存款
                        </button>
                        <button class="btn-secondary w-full md:w-auto mt-2 md:mt-0 md:ml-2">
                            <i class="fa fa-minus mr-2"></i> 取款
                        </button>
                    </div>
                </div>
            </div>

            <!-- 快捷操作按钮 -->
            <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
                <a href="#deposit" class="bg-white rounded-xl shadow-md p-5 card-shadow flex flex-col items-center text-center hover:shadow-lg transition-shadow">
                    <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary mb-3">
                        <i class="fa fa-plus-circle text-xl"></i>
                    </div>
                    <h4 class="font-medium text-gray-900">存款</h4>
                    <p class="text-xs text-gray-500 mt-1">向账户存入资金</p>
                </a>

                <a href="#withdraw" class="bg-white rounded-xl shadow-md p-5 card-shadow flex flex-col items-center text-center hover:shadow-lg transition-shadow">
                    <div class="w-12 h-12 rounded-full bg-warning/10 flex items-center justify-center text-warning mb-3">
                        <i class="fa fa-minus-circle text-xl"></i>
                    </div>
                    <h4 class="font-medium text-gray-900">取款</h4>
                    <p class="text-xs text-gray-500 mt-1">从账户提取资金</p>
                </a>

                <a href="#transfer" class="bg-white rounded-xl shadow-md p-5 card-shadow flex flex-col items-center text-center hover:shadow-lg transition-shadow">
                    <div class="w-12 h-12 rounded-full bg-accent/10 flex items-center justify-center text-accent mb-3">
                        <i class="fa fa-exchange text-xl"></i>
                    </div>
                    <h4 class="font-medium text-gray-900">转账</h4>
                    <p class="text-xs text-gray-500 mt-1">向其他账户转账</p>
                </a>

                                        <a href="#transaction-history" class="bg-white rounded-xl shadow-md p-5 card-shadow flex flex-col items-center text-center hover:shadow-lg transition-shadow">
                            <div class="w-12 h-12 rounded-full bg-secondary/10 flex items-center justify-center text-secondary mb-3">
                                <i class="fa fa-history text-xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-900">交易记录</h4>
                            <p class="text-xs text-gray-500 mt-1">查看交易历史</p>
                        </a>

                        <a href="#card-loss" class="bg-white rounded-xl shadow-md p-5 card-shadow flex flex-col items-center text-center hover:shadow-lg transition-shadow">
                            <div class="w-12 h-12 rounded-full bg-danger/10 flex items-center justify-center text-danger mb-3">
                                <i class="fa fa-lock text-xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-900">挂失</h4>
                            <p class="text-xs text-gray-500 mt-1">银行卡挂失</p>
                        </a>

                        <a href="#change-password" class="bg-white rounded-xl shadow-md p-5 card-shadow flex flex-col items-center text-center hover:shadow-lg transition-shadow">
                            <div class="w-12 h-12 rounded-full bg-success/10 flex items-center justify-center text-success mb-3">
                                <i class="fa fa-key text-xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-900">修改密码</h4>
                            <p class="text-xs text-gray-500 mt-1">修改账户密码</p>
                        </a>

                        <a href="#" class="bg-white rounded-xl shadow-md p-5 card-shadow flex flex-col items-center text-center hover:shadow-lg transition-shadow">
                            <div class="w-12 h-12 rounded-full bg-gray-100 flex items-center justify-center text-gray-500 mb-3">
                                <i class="fa fa-file-text-o text-xl"></i>
                            </div>
                            <h4 class="font-medium text-gray-900">导出账单</h4>
                            <p class="text-xs text-gray-500 mt-1">导出交易账单</p>
                        </a>
                    </div>

                    <!-- 最近交易记录 -->
                    <div class="bg-white rounded-xl shadow-md p-6 card-shadow">
                        <div class="flex items-center justify-between mb-6">
                            <h3 class="text-lg font-semibold text-gray-900">最近交易记录</h3>
                            <a href="#transaction-history" class="text-primary text-sm font-medium hover:underline">查看全部</a>
                        </div>

                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">交易时间</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">交易类型</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">交易金额</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">对方账户</th>
                                        <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-02-14 09:30:22</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                                存款
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-green-900">+¥1,000.00</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-right">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                                已完成
                                            </span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-02-10 14:15:47</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
                                                开户
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-green-900">+¥1,000.00</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-right">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                                已完成
                                            </span>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </main>
            </div>

            <script>
                // 登录表单提交
                document.getElementById('login-form').addEventListener('submit', function(e) {
                    e.preventDefault();
                    const account = document.getElementById('account').value;
                    const password = document.getElementById('password').value;

                    // 模拟登录验证
                    if ((account === '123456' && password === '888888') ||
                        (account.startsWith('10103576') && password === '888888')) {
                        // 管理员或客户登录成功
                        document.getElementById('login-page').classList.add('hidden');
                        if (account === '123456') {
                            document.getElementById('admin-dashboard').classList.remove('hidden');
                            initDepositChart();
                        } else {
                            document.getElementById('client-dashboard').classList.remove('hidden');
                        }
                    } else {
                        // 登录失败提示
                        alert('账号或密码错误，请重新输入');
                    }
                });

                // 管理员退出登录
                document.getElementById('admin-logout').addEventListener('click', function() {
                    document.getElementById('admin-dashboard').classList.add('hidden');
                    document.getElementById('login-page').classList.remove('hidden');
                });

                // 客户退出登录
                document.getElementById('client-logout').addEventListener('click', function() {
                    document.getElementById('client-dashboard').classList.add('hidden');
                    document.getElementById('login-page').classList.remove('hidden');
                });

                // 管理员导航链接点击事件
                document.querySelectorAll('#admin-dashboard .nav-link').forEach(link => {
                    link.addEventListener('click', function() {
                        // 移除所有激活状态
                        document.querySelectorAll('#admin-dashboard .nav-link').forEach(l => {
                            l.classList.remove('active');
                        });
                        // 添加当前激活状态
                        this.classList.add('active');

                        // 隐藏所有内容区域
                        document.querySelectorAll('#admin-dashboard > main > div').forEach(div => {
                            div.classList.add('hidden');
                        });

                        // 显示对应内容区域
                        const targetId = this.getAttribute('href');
                        if (targetId !== '#admin-dashboard') {
                            document.querySelector(targetId).classList.remove('hidden');
                        }
                    });
                });

                // 客户导航链接点击事件
                document.querySelectorAll('#client-dashboard .nav-link').forEach(link => {
                    link.addEventListener('click', function() {
                        // 移除所有激活状态
                        document.querySelectorAll('#client-dashboard .nav-link').forEach(l => {
                            l.classList.remove('active');
                        });
                        // 添加当前激活状态
                        this.classList.add('active');

                        // 这里可以添加显示对应客户功能页面的逻辑
                    });
                });

                // 初始化存款类型分布图表
                function initDepositChart() {
                    const ctx = document.getElementById('depositChart').getContext('2d');
                    new Chart(ctx, {
                        type: 'doughnut',
                        data: {
                            labels: ['活期', '定期一年', '定期二年', '定期三年', '定活两便', '零存整取一年', '零存整取二年', '零存整取三年'],
                            datasets: [{
                                data: [30, 15, 10, 10, 5, 10, 10, 10],
                                backgroundColor: [
                                    '#1a56db', '#3b82f6', '#60a5fa', '#93c5fd',
                                    '#bfdbfe', '#dbeafe', '#f0f9ff', '#f8fafc'
                                ],
                                borderWidth: 0
                            }]
                        },
                        options: {
                            responsive: true,
                            maintainAspectRatio: false,
                            plugins: {
                                legend: {
                                    position: 'right',
                                    labels: {
                                        boxWidth: 12,
                                        padding: 20,
                                        font: {
                                            size: 11
                                        }
                                    }
                                },
                                title: {
                                    display: false
                                }
                            },
                            cutout: '65%'
                        }
                    });
                }
                <!-- ... 已有代码 ... -->

    // 管理员导航链接点击事件
    document.querySelectorAll('#admin-dashboard .nav-link').forEach(link => {
        link.addEventListener('click', function() {
            // 移除所有激活状态
            document.querySelectorAll('#admin-dashboard .nav-link').forEach(l => {
                l.classList.remove('active');
            });
            // 添加当前激活状态
            this.classList.add('active');

            // 隐藏所有内容区域
            document.querySelectorAll('#admin-dashboard > main > div').forEach(div => {
                div.classList.add('hidden');
            });

            // 显示对应内容区域
            const targetId = this.getAttribute('href');
            if (targetId !== '#admin-dashboard') {
                document.querySelector(targetId).classList.remove('hidden');
            }
        });
    });

    // 客户导航链接点击事件
    document.querySelectorAll('#client-dashboard .nav-link').forEach(link => {
        link.addEventListener('click', function() {
            // 移除所有激活状态
            document.querySelectorAll('#client-dashboard .nav-link').forEach(l => {
                l.classList.remove('active');
            });
            // 添加当前激活状态
            this.classList.add('active');

            // 隐藏所有内容区域
            document.querySelectorAll('#client-dashboard > main > div').forEach(div => {
                div.classList.add('hidden');
            });

            // 显示对应内容区域
            const targetId = this.getAttribute('href');
            if (targetId !== '#client-dashboard') {
                document.querySelector(targetId).classList.remove('hidden');
            }
        });
    });

<!-- ... 已有代码 ... -->
            </script>
        </body>
        </html>